package com.yc.jpyy.news.dao;

import java.util.List;
import java.util.Map;


import org.springframework.dao.DataAccessException;

import com.yc.jpyy.base.dao.BaseDao;
import com.yc.jpyy.base.util.PageBean;

public interface NewsDao extends BaseDao{


	int addNewsDao(Map<String, Object> paramsMap) throws DataAccessException;

	int updateNewsDao(Map<String, Object> paramsMap) throws DataAccessException;


	int delNewsDao(Map<String, Object> paramsMap) throws DataAccessException;
	
	Map<String, Object> findNewsByIdDao(Map<String, Object> paramsMap) throws DataAccessException;
	
	 //分页查询
	List<Map<String, Object>> findNewsDao(Map<String, Object> paramsMap)throws DataAccessException;
	  
	  //查询总数
	int findCountNewsDao(Map<String, Object> paramsMap)throws DataAccessException;
	
	//查询总数
	List<Map<String, Object>> findNewByCount(Map<String, Object> paramsMap)throws DataAccessException;
	
	int updateNewsByStatusDao(Map<String, Object> paramsMap) throws DataAccessException;
		
}
